package com.longxin.demoapp.base.service;

import java.io.Serializable;

/**
 * @author Long
 * @version 1.0
 * @description:
 * @remarks:
 * @title BaseService
 * @date 2021/4/6 17:10
 */
public interface IBaseService {
    /**
     * @description: 初始化活动
     * @author Long
     * @date 2021/4/7 18:34
     */
    void initActivity();

    /**
     * 跳转Activity
     * @param cls
     */
    void changeActivity(Class<?> cls);

    /**
     * 跳转Activity并传递数据
     * @param cls
     * @param data
     * @param <T>
     */
    <T extends Serializable> void changeActivity(Class<?> cls, T data);
}
